<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 宝塔添加脚本
//#!/bin/bash
//PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
//export PATH
//step=3
//for (( i = 0; i < 60; i=(i+step) )); do
//curl -sS --connect-timeout 10 -m 60 'http://www.gxysq.cn/adminLayui.t5/index.php/task/open'
//echo "★----------------------------------------------------------------------------"
//endDate=`date +"%Y-%m-%d %H:%M:%S"`
//echo "[$endDate] Successful"
//echo "★----------------------------------------------------------------------------"
//sleep $step
//done
//exit 0

return [
	//定时任务 - 数字可变
	//TODO window 开启  =  php think Task
	//TODO linux 开启   =  php /www/wwwroot/haishi.yichao58.com/adminLayui.t5/think think Task
	//TODO 路径开启 =  /task/open
    'listen'  => [
    	//每1秒钟执行
        'task_1'=>[
        	app\v1\Order\unpaidCancel::class,//自动关闭未支付订单
        	app\v1\UserYy\autoComplete::class,//自动完成
        ],
		//每天	凌晨三点
		'task_d_03'=>[],
		//每周	星期一凌晨0点01分
		'task_w_1'=>[],
		//每月	1号-凌晨0点01分
		'task_m_01'=>[]
    ],
    //事件订阅
    'subscribe' => [
        app\common\subscribe\OrderSubscribe::class,
        app\common\subscribe\UserSubscribe::class,
    ]
];
